import 'package:flutter/material.dart';

void showModel(BuildContext context, String errorMsg) {
  showDialog(
      context: context,
      builder: (context) {
        return new AlertDialog(
          content: new Text(errorMsg),
          actions: <Widget>[
            FlatButton(
              onPressed: () => Navigator.pop(context),
              child: new Text('知道了'),
            )
          ],
        );
      });
}
